package com.lanmao.blog.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lanmao.blog.entity.User;
import com.lanmao.blog.service.LoginService;
import com.lanmao.blog.service.UserService;
import com.lanmao.blog.utils.R;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {
    @Autowired
    UserService userService;
    @Autowired
    StringRedisTemplate stringRedisTemplate;
    @Autowired
    LoginService loginService;
    @GetMapping("/login")
    public R login(){
        return R.error().message("尚未登录，请先登录！");
    }
    /**
     * 验证码登录
     * @param phone
     * @param code
     * @return
     */

}
